package com.aorise.model.halt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Author:cat
 * @Desicription: 计划停机新增入参实体类
 * @Date:Created in 2019-06-11
 * @Modified By:
 */
@Data
@ApiModel
public class HaltAddVO {

    @ApiModelProperty (value = "主键")
    private Integer id;

    @ApiModelProperty (value = "停机日期")
    @NotNull(message = "停机日期不能为空")
    private String haltTime;

    @ApiModelProperty (value = "停机原因")
    @NotNull(message = "停机原因不能为空")
    @Size(max = 200,message = "停机原因不能超过200字")
    private String reason;

    @ApiModelProperty (value = "创建人ID")
    @NotNull(message = "创建人ID不能为空")
    private Integer createUser;

    @ApiModelProperty (value = "停机设备ID")
    @NotNull(message = "停机设备ID不能为空")
    private String cameraIds;

    @Override
    public String toString() {
        return "HaltAddVO{" +
                ", id='" + id + '\'' +
                ", haltTime='" + haltTime + '\'' +
                ", reason='" + reason + '\'' +
                ", createUser=" + createUser +
                ", cameraIds='" + cameraIds + '\'' +
                '}';
    }
}
